import {
  getHttp
} from '../ajaxData'

// 实时数据:树形节点
export function NodeTree(params) {
  const clientId = JSON.parse(localStorage.getItem('huapuauth')).deptId
  return getHttp({
    url: `/fire/nodes/findNodeTree/${clientId}`,
    data: params,
    loadMsg: '加载中',
    isload: false
  })
}

// 实时数据展现
export function NodeShow(params) {
  const nodeId = JSON.parse(localStorage.getItem('NodeList')).nodeId
  return getHttp({
    url: `/svg/firedevice/realdata/${nodeId}`,
    data: params,
    loadMsg: '加载中',
    isload: false
  })
}

// 实时数据:一次接线图展示
export function svgShow(params) {
  const clientId = JSON.parse(localStorage.getItem('huapuauth')).deptId
  return getHttp({
    url: `/svg/pages/${clientId}`,
    data: params,
    loadMsg: '加载中',
    isload: false
  })
}
